The command "Line" has the following parameters:
| List | Parameter |
| Asset | ANLG |
| Balance positions | BILP |
| Journal (entries) | BUCH |
| Recurring entries | DAUR |
| Simplified balance positions | EUEP |
| Account structure | KONT |
| Cost center | KSTS |
| Personal-Accounts | PERS |
| Tax keys | STEU |
| Cash journal | KASL |
| Trips | FHRT |
After reception of this event, the import dialog opens. The import dialog looks like the import from a file. Only the Button for opening a file is not available. The text handed over with the event is interpreted and shown in the list. The settings (separator, column allocation) of this dialog are used. These settings can be changed at any time. After a change, you must update the list with the Button "Update".
Because the handing over occurs line by line, a "LINE" event must be sent for every line. Every line is interpreted after reception and shown in the list of the import dialog.
In "Xojo", the program for sending looks as follows:
Dim theEvent As AppleEvent
theEvent = NewAppleEvent( "IMPT", "KSTS", "HaBu")
theEvent.StringParam( "LINE") = "454;;Neue Kostenstelle"
If Not( theEvent.Send) Then
MsgBox "Der AppleEvent konnte nicht gesendet werden"
Else
If theEvent.ReplyBoolean Then
Ergebnis.Text = "Daten wurden verarbeitet"
Else
Ergebnis.Text = "Daten konnten nicht verarbeitet werden"
End If
End If
The second line ("NewAppleEvent") generates the event with the necessary parameters. The second parameter corresponds to the list to import and can be taken from above table. The other values should not be changed. In the third line we define the dates to be handed over (line). The method "Send" transmits the event to "xHaBu" and gets back a Boolean value as a result. It can be evaluated to find out that the dates were transmitted to "xHaBu". Dates can't be processed, for example, if an import dialog for another list is open.
In other computer languages the above example looks certainly a little bit different. However, the basic elements also exist.